package com.chehejia.devmng.platform.util;

import org.springframework.util.StringUtils;

public class OSUtils {

    public static boolean isBlank(String str) {
        return StringUtils.isEmpty(str);
    }

    public static boolean isOSWindows() {
        String osName = System.getProperty("os.name");
        if (OSUtils.isBlank(osName)) {
            return false;
        }
        return osName.startsWith("Windows");
    }
}